package cc.spider.web.fetcher;


import cc.spider.core.IFetcherListener;
import cc.spider.model.GlobalDefaultData;
import cc.spider.model.TaskInfo;
import cc.spider.web.model.GlobalDefaultDataExt;
import cc.spider.web.model.http.Request;

public abstract class HttpFetcher extends Fetcher {
    @Override
    protected void executeFetch(TaskInfo request, GlobalDefaultData defaultData, IFetcherListener fetcherListener) {
        this.httpRequest((Request) request, (GlobalDefaultDataExt) defaultData, fetcherListener);
    }

    protected abstract void httpRequest(Request request, GlobalDefaultDataExt defaultData, IFetcherListener fetcherListener);
}
